package com.sugar.web.action.system;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.sugar.domain.system.privilege.PrivilegeResourceItem;
import com.sugar.service.system.privilege.IPrivilegeResourceItemService;
import com.sugar.web.action.base.BaseActionSupport;

@Controller
@Scope("prototype")
public class PrivilegeItemAction extends BaseActionSupport{

	private static final long serialVersionUID = 1L;
	
	private PrivilegeResourceItem pritem ;
	
	public PrivilegeResourceItem getPritem() {
		return pritem;
	}

	public void setPritem(PrivilegeResourceItem pritem) {
		this.pritem = pritem;
	}

	@Resource
	private IPrivilegeResourceItemService itemService ;
	
	public String queryByIdList() throws Exception {
		
		this.getRequest().setAttribute("privilegeItem", this.itemService.findPrivilegeResourceItemService(new Object[]{pritem.getMc_id()})) ; 
		
		return "queryByIdList" ;
	}

}
